package cc.magicjson.mall.order.infrastructure.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.math.BigDecimal;

@FeignClient(name = "mall-cloud-product")
public interface ProductServiceClient {
    @GetMapping("/products/price/{productId}")
    BigDecimal getProductPrice(@PathVariable("productId") String productId);
}